cmake_minimum_required(VERSION 3.8)
project(sqlite_test)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

include_directories(../../core/common)
include_directories(../../core/data)
include_directories(../../core/db)
include_directories(../../core/db/sqlite)
include_directories(../../core/db/terminal)
include_directories(../../core)
include_directories(../../v1)
include_directories(../../terminal_service)
include_directories(../../core/device)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")

# get_directory_property(out_var INCLUDE_DIRECTORIES)

# message("${out_var}")

add_executable(sqlite_orm_test 
    main.cpp
    ../../core/db/sqlite/sqlite3.c
    ../../core/db/terminal/oiltrans.cpp
    ../../core/db/terminal/sqlite/oiltrans_sqlite.cpp
    ../../core/logger/logger.cpp
    ../../core/data/sr2valhelper.cpp
    ../../core/data/configvalue.cpp
    ../../core/data/sr2valhelper.cpp
    ../../core/common/cJSON.c
    ../../core/common/md5.cpp
    ../../core/common/httphelper.cpp
    ../../core/common/configure.cpp
    ../../core/device/serialport.cpp
    ../../core/device/screenraw2valueby100.cpp
    ../../core/device/screenraw2valueby135.cpp
    ../../terminal_service/config.h
)

target_link_libraries(sqlite_orm_test stdc++fs)

